#ifndef HISTORYSTORAGE_H
#define HISTORYSTORAGE_H

#include <QStringList>

class HistoryStorage
{
public:
    HistoryStorage();
    void setMaxSize(int size);
    int getMaxSize();
    int getHistoryNumber();
    QString getPureAnswer(QString answer);
    void push(const QString& question, const QString& answer);
    void clear();
    QString toString();
private:
    int maxSize = 3;
    QStringList history;
};

#endif // HISTORYSTORAGE_H
